import { movieListRequest } from "../../api"
import { GETMOVIELIST } from "../constant/movieConst"
import store from "../store"
export const getMovielistAction = () => {
  return async () => {
    //发送axios请求
    const re = await movieListRequest()
    //发送store
    store.dispatch({
      type:GETMOVIELIST,
      data:re.data.data.list
    })

  }
}